package com.example.eureka_client.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 问题表
 * </p>
 *
 * @author plj
 * @since 2022-03-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("QUESTION")
@ApiModel(value="Question对象", description="问题表")
public class Question implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ID", type = IdType.INPUT)
    private String id;

    @ApiModelProperty(value = "标题（必须）")
    @TableField("TITLE")
    private String title;

    @ApiModelProperty(value = "内容（必须）")
    @TableField("CONTENT")
    private String content;

    @ApiModelProperty(value = "创建时间（必须）")
    @TableField("CREATE_TIME")
    private String createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("UPDATE_TIME")
    private String updateTime;

    @ApiModelProperty(value = "赞同数目")
    @TableField("AGREE_NUM")
    private Integer agreeNum;

    @ApiModelProperty(value = "评论量")
    @TableField("COMMENT_NUM")
    private Integer commentNum;

    @ApiModelProperty(value = "浏览量")
    @TableField("WATCH_USER_NUM")
    private Integer watchUserNum;

    @ApiModelProperty(value = "用户id（必须）")
    @TableField("USER_ID")
    private String userId;

    @ApiModelProperty(value = "关注数目")
    @TableField("ATTENTION_NUM")
    private Integer attentionNum;

    @ApiModelProperty(value = "问题类型（必须）")
    @TableField("TYPES")
    private Integer type;


}
